package com.yuandian.api.management.feign;

import com.yuandian.api.management.vo.EndToEndNodeVo;
import com.yuandian.api.management.vo.EndToEndRelationshipVo;
import com.yuandian.bpm.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 说明：远程调用选项接口服务
 * @Author zfsn
 * @Date 2023/3/14 16:06
 */
@FeignClient(contextId = "RemoteEndToEndRelationshipService", value = "bpm-management")
public interface RemoteEndToEndRelationshipService {

	/**
	 *
	 * 根据系统id找到所有的端到到端的关系
	 */
	@PostMapping("/step/endToEndRelationship/getEndToEndRelationBySystemId/{systemId}")
	R<List<EndToEndNodeVo>> getEndToEndRelationBySystemId(@PathVariable("systemId") Integer systemId);

	/**
	 *
	 *根据业务步骤精确查找网端配置
	 */
	@PostMapping("/step/endToEndRelationship/getEndToEndRelationship")
	R<List<EndToEndNodeVo>> getEndToEndRelationship(@RequestBody EndToEndRelationshipVo endToEndRelationshipVo);
}
